package study04;

public class Worker {
		private String wname;
		private int age;
		private int salary;
		public String getWname() {
			return wname;
		}
		public void setWname(String wname) {
			this.wname = wname;
		}
		public int getAge() {
			return age;
		}
		public void setAge(int age) {
			this.age = age;
		}
		public int getSalary() {
			return salary;
		}
		public void setSalary(int salary) {
			this.salary = salary;
		}
		public Worker(String wname,int age,int salary){
			this.wname = wname;
			this.age  = age;
			this.salary  = salary;
		}
		public Worker(){};
		@Override
		public String toString() {
		// TODO Auto-generated method stub
		return wname+"/"+age+"/"+salary;
		}
}
